home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1996 #15 / Monster Media Number 15 (Monster Media)(July 1996).ISO / modem / tspfon30.zip / HOSTMODE.ASP < prev    next >
Text File  |  1988-12-27  |  2KB  |  59 lines

  1. ;
  2. ;       HOSTMODE.ASP (a part of the TSPFON23 or later package)
  3. ;                         by Timo Salmi
  4. ;                           27-Dec-88
  5. ;
  6. ; Makes Procomm Plus and the modem (a Worldport 2400) ready for the host mode.
  7. ; Important notice! Depending on your individual Procomm Plus settings and
  8. ; your modem's characteristics you may have to customize hostmode.asp!
  9. ;
  10. ; After running this script you should have the text "Waiting" in the
  11. ; lower left corner of the screen. If the logon procedure starts without
  12. ; anyone calling, check that the Host Mode Options menu item D (ALT-S)
  13. ; is set to modem, not direct.
  14. ;
  15. ; After exiting the Procomm Plus host mode, entering ATZ restores the
  16. ; default settings of the modem.
  17.  
  18. TRACE ON
  19. SET BACKSPACE DEST
  20. ;If you don't want a translation, comment it away (and so on!)
  21. SET TRANSLATE ON        
  22. SET BAUDRATE 1200
  23. EMULATE ANSI
  24. TRACE OFF
  25.  
  26. PAUSE 1
  27. TRANSMIT "AT^M"         ;Wake up the modem
  28.  
  29. PAUSE 1
  30. TRANSMIT "ATZ^M"        ;Initialize the modem
  31.  
  32. ;Increase the carrier singnal maximum wait
  33. ;In case of problems, adjust accordingly the wait for connection (F-option)
  34. ;in the Procomm Plus setup menu (ALT-S)
  35. PAUSE 1
  36. TRANSMIT "ATS7=40^M"    
  37.  
  38. ;Set the autoanswer on and make it reply on the first ring
  39. ;You may want to increase ATS0 from 1 to be able to act before a connection
  40. PAUSE 1
  41. TRANSMIT "ATS0=1^M"     
  42. WAITFOR "OK"  5
  43. IF NOT WAITFOR
  44.   ALARM 1
  45.   MESSAGE "Failed to set autoanswer on"
  46.   GOTO OUT
  47. ENDIF
  48.  
  49. ;Turn the modem's local echo off if necessasy
  50. ;I have commented it away, since it is not needed in my configuration
  51. ;TRANSMIT "ATE0^M"       
  52.  
  53. ;Turn the modem's result codes off if necessary
  54. ;TRANSMIT "ATQ1^M"       
  55.  
  56. HOST                    ;Start the host mode
  57.  
  58. OUT:
  59.